package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the payment_mode database table.
 * 
 */
@Entity
@Table(name="payment_mode")
public class PaymentMode implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int modeId;

	private String narrative;

	//bi-directional many-to-one association to ReceiptPayment
	@OneToMany(mappedBy="paymentMode")
	private List<ReceiptPayment> receiptPayments;

    public PaymentMode() {
    }

	public int getModeId() {
		return this.modeId;
	}

	public void setModeId(int modeId) {
		this.modeId = modeId;
	}

	public String getNarrative() {
		return this.narrative;
	}

	public void setNarrative(String narrative) {
		this.narrative = narrative;
	}

	public List<ReceiptPayment> getReceiptPayments() {
		return this.receiptPayments;
	}

	public void setReceiptPayments(List<ReceiptPayment> receiptPayments) {
		this.receiptPayments = receiptPayments;
	}
	
}